<template>
    <div>
        <myheader></myheader>
            <div>
  <div class="container">
    <div class="page-title-normal">
      <h2 class="page-title-h2"><span>check out</span></h2>
    </div>
    <!-- 进度条 -->
    <div class="check-step">
      <ul>
        <li class="cur"><span>Confirm</span> address</li>
        <li class="cur"><span>View your</span> order</li>
        <li class="cur"><span>Make</span> payment</li>
        <li class="cur"><span>Order</span> confirmation</li>
      </ul>
    </div>

    <div class="order-create">
      <div class="order-create-pic"><img src="/static/ok-2.png" alt=""></div>
      <div class="order-create-main">
        <h3>Congratulations! <br>Your order is under processing!</h3>
        <p>
          <span>Order ID：{{ orderId }}</span>
          <span>Order total：{{ money | currency('$') }}</span>
        </p>
        <div class="order-create-btn-wrap">
          <div class="btn-l-wrap">
            <router-link to="/cart" tag="a" class="btn btn--m">Cart List</router-link>
          </div>
          <div class="btn-r-wrap">
            <router-link to="/goodlist" tag="a" class="btn btn--m">Goods List</router-link>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
        <myfooter></myfooter>
    </div>
</template>


<script>
import myheader from './header.vue'
import myfooter from './footer.vue'

    export default{
        data(){
            return{
                orderId:this.$route.params.orderId,
                money:0            
                }
        },
        created () {
            this.showdata()
        },
        methods: {
            showdata(){
                this.$http.get('/users/success',{params:{orderId:this.orderId }}).then(data=>{
                    if(data.body.status==0){
                        this.money=data.body.result
                    }
                })
            }
        },
        components:{
            myheader,
            myfooter
        }
    }
</script>


<style>

</style>

